package com.chancein.cloud.report.charts.common.constant;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

/**
 * es 的相关常量
 *
 * @author: LiaoZiHao
 * @date: 2023/8/4 14:25
 * Copyright © 2022 Hundsun Technologies Inc. All Rights Reserved
 */
public class EsConstant {
    /**
     * es的 Java客户端
     */
    public static RestHighLevelClient client = new RestHighLevelClient(RestClient.builder(
            HttpHost.create("http://10.5.23.193:9200")
    ));
    /**
     * index name
     */
    public static final String ES_INDEX_NAME = "research_report_charts";
    /**
     * es pageSize
     */
    public static final int PAGE_SIZE = 100;
}
